Package-level declarations

Types

Link copied to clipboard
data class ContainerLogsParameters(val follow: Boolean = false, val stdout: Boolean = true, val stderr: Boolean = true, val timestamps: Boolean = false, val tail: String? = null, val since: Long? = null, val until: Long? = null)

Selects output and history for dev.limebeck.libs.docker.client.api.Containers.getLogs. The default reads available stdout/stderr history and finishes; set follow for live output.

Link copied to clipboard
class DockerApiException(val status: HttpStatusCode, val error: ErrorResponse) : IllegalStateException

An HTTP error returned when collecting a cold Docker stream. error retains raw daemon details and may contain sensitive data; the exception message includes only status. SDK stream failures also expose safe operation metadata via the diagnostics dockerContext extension.

Link copied to clipboard

Owned duplex exec/attach connection, independent of the client's HTTP connection pool.

Link copied to clipboard
@Serializable
data class ImageProgress<out TAux>(val id: String? = null, val status: String? = null, val stream: String? = null, val progress: String? = null, val progressDetail: ImageProgressDetail? = null, val aux: TAux? = null)

One Docker image-operation record. Fields may be absent. TAux is selected by the operation: ImagePushResult for push, Unit for create/load. Counts describe the individual layer id, not overall operation completion. The operation's returned Result determines success, never a status string or percentage.

Link copied to clipboard
@Serializable
data class ImageProgressDetail(val current: ULong? = null, val total: ULong? = null)

Exact per-layer counts. Missing counts are unknown; a zero total is not a usable denominator.

Link copied to clipboard
@Serializable
data class ImagePushResult(val tag: String? = null, val digest: String? = null, val size: ULong? = null)

Optional manifest information supplied in Docker push progress.

Link copied to clipboard
data class LogLine(val type: LogLine.Type, val line: String)
Link copied to clipboard
class OutputChunk(val type: LogLine.Type, val bytes: ByteArray)

A binary output fragment. Boundaries need not coincide with lines or UTF-8 characters.

Link copied to clipboard
value class Result<out T, out E>(unboxed: Any?)

Success value T or typed error E, distinct from kotlin.Result.

Link copied to clipboard
@Serializable
data class SwarmCreateResponse(val id: String)

ID returned by Swarm secret/config creation (Docker uses the uppercase JSON key ID).

Link copied to clipboard
data class SwarmLogsParameters(val follow: Boolean = false, val stdout: Boolean = true, val stderr: Boolean = true, val timestamps: Boolean = false, val details: Boolean = false, val since: Long? = null, val tail: String? = null)

Service/task log options. History is read once by default; follow keeps the request open. since is Unix seconds; tail is a decimal line count or "all" (null uses Docker's default). details includes context supplied by Docker. TTY merges stdout and stderr.

Functions

Link copied to clipboard
fun <E> E.asError(): Result<Nothing, E>
Link copied to clipboard